package com.qqq.adminservice.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qqq.adminservice.user.domain.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 处理sys_user表
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 判断手机号是否存在于mysql
     */
    SysUser selectByPhoneNumber(@Param("phoneNumber") String phoneNumber);

    List<SysUser> selectList(SysUser sysUser);
}
